var root = ui("$");
var openHelper = require("helper/open");
var circleHelper = require("helper/circle");

root.setMapping({
	"imgLogo.source":"fullLogo",
	"lableName.text":"name",
	"do_ALayout_root.tag":"id",
	"do_Label_1.text":"memberCount"
});
root.on("dataRefreshed", function(){
	var lableName = ui("lableName").text;
	if(lableName.length>4){
		ui("lableName").text = lableName.substr(0, 4);
	}
	ui("do_Label_1").text=ui("do_Label_1").text+"人";
});
//推荐活动详情
ui("do_ALayout_root").on("touch", function(data) {
	circleHelper.toCircleDetail(ui("do_ALayout_root").tag, ui("lableName").text);
});
